﻿#ifndef TURNTABLEDECODE_TURNTABLE_RUNNINGMODE_H
#define TURNTABLEDECODE_TURNTABLE_RUNNINGMODE_H

#include <qobject.h>
#include "ObjAutoInject.h"
#include "TurnTableDecodeBase.h"
#include <qhash.h>

#include "ACT/LogSaver.h"

class TurnTableCodec;
class RegisterCenter_Device;
class TurnTableDecode_TurnTable_RunningMode : public QObject,public ObjAutoInject,public TurnTableDecodeBase
{
  Q_OBJECT
private://property
  TurnTableCodec* turnTableCodec=Q_NULLPTR;
  RegisterCenter_Device* registerCenter_Device=Q_NULLPTR;
  LogSaver* logSaver=LogSaver::getLogSaver();
public:
  explicit TurnTableDecode_TurnTable_RunningMode(TurnTableCodec* turnTableCodec);
  virtual ~TurnTableDecode_TurnTable_RunningMode();
signals:
public:
  virtual void decode(char* const data,uint deviceId)override;
public://geter and seter
  RegisterCenter_Device* getRegisterCenter_Device()const;
  TurnTableDecode_TurnTable_RunningMode* setRegisterCenter_Device(RegisterCenter_Device* const registerCenter_Device);
public:
  virtual void objectAutoInjection(QHash<QString,QObject*>* objMap)override;
};

#endif // TURNTABLEDECODE_TURNTABLE_RUNNINGMODE_H
